# -*- coding: utf-8 -*-
# @File  : fixture.py
# @Author: zbh
# @Date  : 2025/4/18_14:31

from datetime import datetime
import pytest
# 设置用例开始和结束的夹具


@pytest.fixture(scope="function",autouse=True)
def test_jiaju1():
    print("\n在fixture中设置,开始时间是：",datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
    yield
    print("\n在fixture中设置,结束时间是：",datetime.now().strftime("%Y-%m-%d %H:%M:%S"))



